from networkx.utils.backends import _dispatch

@_dispatch
def is_regular(G): ...
@_dispatch
def is_k_regular(G, k): ...
@_dispatch
def k_factor(G, k, matching_weight: str = "weight"): ...
